package com.you.pattern.listener.demo1;

import java.util.EventObject;

public class CusEvent extends EventObject {

    private Object source;// 事件源

    public CusEvent(Object source) {
        super(source);
        this.source = source;
    }

    @Override
    public Object getSource() {
        return source;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
